//
//  CRBBrandListModel.m
//  ChampsARotate
//
//  Created by 吴凡 on 2018/12/27.
//  Copyright © 2018 Logan.Fan. All rights reserved.
//

#import "CRBBrandListModel.h"

@implementation CRBBrandListModel

@end

@implementation BrandIndexModel

- (void)iterateThroughsDataToFindHotBrand {
    
    NSMutableArray *hotArr = [NSMutableArray new];
    
    for (BrandInfoModel *infoModel in self.A) {
        if (infoModel.hot) {
            [hotArr addObject:infoModel];
        }
     //   infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.B) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.C) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.D) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.E) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    
    // 6
    for (BrandInfoModel *infoModel in self.F) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.G) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.H) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.I) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.J) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    // 11
    for (BrandInfoModel *infoModel in self.K) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.L) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.M) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.N) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.O) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    // 16
    for (BrandInfoModel *infoModel in self.P) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.Q) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.R) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.S) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.T) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    // 21
    for (BrandInfoModel *infoModel in self.U) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.V) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.W) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.X) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    for (BrandInfoModel *infoModel in self.Y) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    // 26
    for (BrandInfoModel *infoModel in self.Z) {
        infoModel.hot == NO?:[hotArr addObject:infoModel];
    }
    
    self.hot = hotArr;
    
}
// 声明容器类属性里要返回什么类型的数据
+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"A" : [BrandInfoModel class],
             @"B" : [BrandInfoModel class],
             @"C" : [BrandInfoModel class],
             @"D" : [BrandInfoModel class],
             @"E" : [BrandInfoModel class], // 6
             @"F" : [BrandInfoModel class],
             @"G" : [BrandInfoModel class],
             @"H" : [BrandInfoModel class],
             @"I" : [BrandInfoModel class],
             @"J" : [BrandInfoModel class], // 10
             @"K" : [BrandInfoModel class],
             @"L" : [BrandInfoModel class],
             @"M" : [BrandInfoModel class],
             @"N" : [BrandInfoModel class],
             @"O" : [BrandInfoModel class], // 15
             @"P" : [BrandInfoModel class],
             @"Q" : [BrandInfoModel class],
             @"R" : [BrandInfoModel class],
             @"S" : [BrandInfoModel class],
             @"T" : [BrandInfoModel class], // 20
             @"U" : [BrandInfoModel class],
             @"V" : [BrandInfoModel class],
             @"W" : [BrandInfoModel class],
             @"X" : [BrandInfoModel class],
             @"Y" : [BrandInfoModel class], // 25
             @"Z" : [BrandInfoModel class]};
}
//返回一个 Dict，将 Model 属性名对映射到 JSON 的 Key。
//+ (NSDictionary *)modelCustomPropertyMapper {
//    return @{@"hot" : @"1"};
//}
@end

@implementation BrandInfoModel
@end
